//
//
//  RiceBasket
//
//  Created by DwZeng on 2021/1/15.

#import "UIImageView+Category.h"

@implementation UIImageView (Category)
/**
 未加密的加载图片的方法
 
 @param url url
 @param img 占位图图片
 */
-(void)imageWithUrl:(NSString *)url placeholderImg:(NSString *)img{
    if (img && img.length == 0) {
        img = @"";
    }
    if ([url hasPrefix:@"http"]) {
        [self sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:[UIImage imageNamed:img]];
    }
}
@end
